package com.iss.okair.service.baseinfo;

import com.iss.okair.db.entity.Employee;
import com.iss.okair.db.entity.EmployeeDept;
import com.iss.okair.db.mapper.EmployeeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class EmployeeService {
    @Resource
    //得到一个员工类的mapper
    private EmployeeMapper mapper;
    //得到具体的员工部门全部查询集合
    public List<EmployeeDept> getemplist(){
        return mapper.getempdeptlist();
    }
    public  List<Employee> findBy(Employee emp){
        return mapper.selectBy(emp);
    }
    public List<Employee> selectList(String dept){
        return mapper.selectList();
    }

}
